package com.googlecode.animator.data.materials
{
	import com.googlecode.animator.data.IValueObject;
	
	public class VideoStreamMaterialVO extends FileAssetMaterialVO
	{
		public static const TYPE:String = "VideoStreamMaterial";
		
		public var showControls:Boolean = false;
	
		override public function clone(src:* = null):IValueObject
		{
			var clone:IValueObject = super.clone(new VideoStreamMaterialVO());
			
			(clone as VideoStreamMaterialVO).showControls = this.showControls;
			
			return (clone as VideoStreamMaterialVO);
		}
		
		override public function toXML(src:XML = null):XML
		{
			var xml:XML = super.toXML(new XML(<{TYPE} face={this.face}></{TYPE}>));
			
			xml.appendChild(<showControls>{this.showControls}</showControls>);
			
			return xml;
		}
		
		override public function fromXML(src:XML):void
		{
			super.fromXML(src);
			
			//this.showControls = src.showControls == "true" ? true : false;
		}
	}
}